Hamlib  4.5~git
Data Structures | Macros | Typedefs | Functions | Variables
network.c File Reference

Network port IO. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/types.h>
#include <signal.h>
#include <pthread.h>
#include <hamlib/rig.h>
#include "network.h"
#include "misc.h"
#include "asyncpipe.h"
#include "snapshot_data.h"

Data Structures

struct  multicast_publisher_data_packet_s
 
struct  multicast_publisher_priv_data_s
 

Macros

#define MULTICAST_PUBLISHER_DATA_PACKET_TYPE_POLL   0x01
 
#define MULTICAST_PUBLISHER_DATA_PACKET_TYPE_TRANSCEIVE   0x02
 
#define MULTICAST_PUBLISHER_DATA_PACKET_TYPE_SPECTRUM   0x03
 

Typedefs

typedef struct multicast_publisher_priv_data_s multicast_publisher_priv_data
 

Functions

struct multicast_publisher_data_packet_s __attribute__ ((packed))
 
int network_init ()
 
int network_open (hamlib_port_t *rp, int default_port)
 Open network port using rig.state data. More...
 
void network_flush (hamlib_port_t *rp)
 Clears any data in the read buffer of the socket. More...
 
void sync_callback (int lock)
 

Variables

uint8_t type
 
uint8_t padding
 
uint16_t data_length
 
 multicast_publisher_args
 

Detailed Description

Network port IO.